﻿<!DOCTYPE html>
<html>
<head>	
    <title>SFEHome</title>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
	<script type="text/javascript" charset="utf-8" src="js/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="js/jquery-ui-1.9.2.custom.min.js"></script>
	<link rel="stylesheet" type="text/css" charset="utf-8" href="css/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" charset="utf-8" href="css/oval-css/oval-icon.css">
	<link rel="stylesheet" type="text/css" charset="utf-8" href="css/themes/icon.css">
	<script type="text/javascript" charset="utf-8" src="js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="js/datagrid-groupview.js"></script>
	<script type="text/javascript" charset="utf-8" src="js/locale/easyui-lang-zh_CN.js"></script>
	<link rel='stylesheet' type='text/css' href='css/fullcalendar/fullcalendar.css' />
	<link rel='stylesheet' type='text/css' href='css/fullcalendar/fullcalendar.print.css' media='print' />
	<script type='text/javascript' src='js/fullcalendar.min.js'></script>
	<script type="text/javascript" charset="utf-8" src="js/sfelib.js"></script>
	
	<script type="text/javascript">
    var token = sessionStorage.getItem("token");
	if(token == null || token == ''){
		window.location.href = "Error.html";
	} 
	
	$(function () {
		sfeHome_checkToken();
		var employeename = localStorage.getItem("employeename");
		$('#sfe_login_employeename').html("当前登录人: " + employeename + "&nbsp;&nbsp;|");
		$("ul#topnav li").find("a").first().css({
			'background' : '#e5edfa'
		});
		$('#sfe-panel-main').panel('refresh', 'SFEMain.html');
		$("ul#topnav li a").mouseover(function () {
			$(this).css({
				'color' : '#3671dc'
			});
		}).mouseout(function () {
			$(this).css({
				'color' : '#164589'
			});
		});
		
	});
	
	/**
	 * 页面导航跳转控制
	 * 
	 */
	function page_panel(obj,sign){
	    $("ul#topnav li a").css({ 'background' : 'none'});
	    setTimeout(function(){$("#"+obj).css({'background':'#e5edfa'});},90);
		$('#sfe-panel-main').dialog('destroy');
		$('#sfe-main-content').html('<div id="sfe-panel-main"></div>');		
		if('sfe_home_a5'==obj){
			var userid = localStorage.getItem("oval_userid");		
			$('#sfe-panel-main').panel({     
				border:false,
				content: '<iframe scrolling="auto" frameborder="0"  src="http://docserver:8899/_layouts/15/OVAL.SFE.SharepointProject/TokenLogin.aspx?userid=zhangsan&sfesystemtoken=111111&ReturnUrl=%2f_layouts%2f15%2fAuthenticate.aspx%3fSource%3d%252F&Source=documentcenterdefault.aspx?k='+token+'" style="width:958px;height:523px"></iframe>'
			});  			
		}else{
			$('#sfe-panel-main').panel({	
				href:sign,   
				border:false
			});  		
		}
	
	}
	
    /**
	* 周调用job校验token是否有效
	*/
	function sfeHome_checkToken(){
		var variable = new Array('__methodName', '__token', 'pagename', 'actionname','__params');
		var value = new Array('wsActionJSON', token, 'p_checkusertoken', 'checktoken',"");
		var dataStr = getJsonData(variable, value);
		connectionServlet(dataStr, sfeHome_checkTokenReturn);
	}
	
	function sfeHome_checkTokenReturn(data){;
		if(data.successflag == 'false'){
		     window.location.href="Error.html";
		     return ;
		}
	}
	
	/**
	 * 退出系统

	 * 
	 */
	function exitApp(){
	     localStorage.clear();
         sessionStorage.clear();  
         window.location.href="../HomePage.jsp";
	}

</script>

<style type="text/css">
*{
   font-family :'宋体';
}
.container {width: 960px; margin: 0 auto;}

ul#topnav {
	margin: 0; padding: 0;
	float: left;
	width: 960px;
	list-style: none;
	position: relative;
	font-size: 1.1em;
	background: url(images/bg_topbar.gif) repeat-x;
}
ul#topnav li {
	float: left;
	padding-top: 4px;
	height:60px;
	
}
ul#topnav li a {
    padding-top:5px;
	padding-bottom:2px;
	margin-top:5px;
    padding-left:15px;
	padding-right:15px;
	margin-bottom : 0px;
	display: block;
	color: #164589;
	font-weight:800;
	text-decoration: none;
	height:20px;
	outline:none;
	border-right:1px solid #afc0da;
}

/*ul#topnav li span {
	float: left;
	padding: 5px 0;
	position: absolute;
	left: 0; top:35px;
	display: block;
	width: 960px;
	color: #fff;
	-moz-border-radius-bottomright: 5px;
	-khtml-border-radius-bottomright: 5px;
	-webkit-border-bottom-right-radius: 5px;
	-moz-border-radius-bottomleft: 5px;
	-khtml-border-radius-bottomleft: 5px;
	-webkit-border-bottom-left-radius: 5px;
}*/
/*ul#topnav li:hover span { display: block; }*/
/*ul#topnav li span a { display: inline; }*/
.top_span{
    height:100%;
	font-family:Arial, Helvetica, sans-serif;
	font-size:12px;
	text-decoration :none;
	color :#fff;
}
</style>
<body style="background:#678fc2;overflow-y:auto;overflow-x:hidden">
    <div  style="background:url(images/bg_tophead_1.gif) no-repeat;height:48px;margin:0 auto;width:980px;" align="center">
	<div style="padding-left:660px;padding-top:16px;color :#fff;position:relative;"><span class="top_span" id="sfe_login_employeename"></span>&nbsp;<a href="javascript:void(0)" class="top_span">修改密码&nbsp;&nbsp;|</a><a href="javascript:void(0);" onclick="exitApp();" class="top_span" >&nbsp;&nbsp;退出</a></div>
	</div>
    <div class="easyui-layout" data-options="border:false" style="width:960px;height:620px;overflow:hidden;margin:0px auto">
       <div data-options="region:'north',border:false" style="height:60px;overflow:hidden;">
			     <div class="container">	
					  <ul id="topnav">
						<!--
						     <li>
						    <a href="javascript:void(0);">首页</a> |
						    <span>
								<a href="javascript:void(0);" onclick="page_panel('SFEMain.html')">首页</a> 
							</span>
						</li>
						<li>
							<a href="javascript:void(0);">日常活动</a> |
							<span>
								<a href="javascript:void(0);" onclick="page_panel('PharmacyManager.html')">药店拜访</a> |
								<a href="javascript:void(0);" onclick="page_panel('HospitalManager.html')">医院拜访</a> |
								<a href="javascript:void(0);" onclick="page_panel('VisitplanShow.html')">计划查看</a> |
								<a href="javascript:void(0);" onclick="page_panel('FeedbackShow.html')">拜访查看</a>
							</span>
						</li>
						<li>
							<a href="javascript:void(0);">客户管理</a>
							<span>
								<a href="javascript:void(0);">客户管理</a>
							</span>
						</li>
						-->
						
						<li>
							<a id="sfe_home_a0" href="javascript:void(0);" onclick="page_panel('sfe_home_a0','SFEMain.html')">首页</a> 
						</li>
						<li>
						    <a id="sfe_home_a1" href="javascript:void(0);" onclick="page_panel('sfe_home_a1','PharmacyManager.html')">药店拜访</a>
						</li>
						<li>
							<a id="sfe_home_a2" href="javascript:void(0);" onclick="page_panel('sfe_home_a2','HospitalManager.html')">医院拜访</a>
						</li>
						<li>
							<a id="sfe_home_a3" href="javascript:void(0);" onclick="page_panel('sfe_home_a3','VisitplanShow.html')">计划查看</a>
						</li>
						<li>
							<a id="sfe_home_a4" href="javascript:void(0);" onclick="page_panel('sfe_home_a4','FeedbackShow.html')">拜访查看</a>
						</li>	
						<!--
						<li>
							<a id="sfe_home_a5" href="javascript:void(0);" onclick="page_panel('sfe_home_a5','SFEMain.html')">资料中心</a> 
						</li>
						-->
					 </ul>
              </div>
      </div>  

		<div data-options="region:'south',split:false,border:true" style="height:35px;background: #c9defe">
			
		</div>
    <div id="sfe-main-content" data-options="region:'center',fit:true,border:false">
	       <div id="sfe-panel-main" class="easyui-panel" data-options="border:false"></div>
	</div>  
	
</div>	
</body>


</html>
